Mathematica has RowReduce[], how can I use this to calculate a basis for the range of any matrix?
Given
A={{1,1,1,1,2},{1,2,4,0,5},{2,1,-1,4,0},{-1,1,5,-1,2}};
RowReduce[A]=={{1,0,-2,0,1},{0,1,3,0,2},{0,0,0,1,-1},{0,0,0,0,0}}
The leading 1's in the reduced row echelon form select the first, second, and fourth column vectors of A as a basis for the range of A. How do I program mathematica to make that selection after calculating RowReduce[A]?