Calculates a reduced row echelon form of the current matrix using Gaussian elimination, replaces contents of the current matrix with the result, and returns a reference to the matrix.