Rank of a matrix by Row-Transformation