Do a row switching transformation; exchange rowIndex1th row and rowIndex2th row.
new transformed matrix.