Added _nmod_mat_rref function which allows the pivots to be stored.