RowReduce

RowReduce[matrix]
returns the reduced row-echelon form of matrix.