Getting a matrix to the -1 power