RowReduce[{{1,2,1,1},{3,5,1,3},{2,6,7,1}}]