Corrected a bug in printf functions and added pow function in nmod_mat

Fixed the bug mentioned in ticket no #49

Also added the nmod_mat_pow function as mentioned in the to-do list.