Improved the test functions for pow and evaluate_mat

* Added a nmod_mat_swap function
* Provided a cover function for nmod_mat_pow to provide efficient aliasing
* Added randomness in test functions
* Edited documentation for all new function according to proper format