Fix for matrix power in case that n <0, for some reason n=-1 didn't give same results as pinv. 
Fix for matrix power in case that n <0, for some reason n=-1 didn't give same results as pinv. 
charanpald/APGL