Rank of a matrix by Row- Echelon Form