Carries out the algorithm of Gauss-Jordan elimination on a given matrix to yield its reduced row echelon form.