power of a matrix