Code clean up.
Remove the verbose parameter.
Move matrix_inverse_mod to Matrix.inv_mod.