matrix_rank function

Matrix Rank