Reduce the matrix to reduced row-echelon form.