Numpy Matrix Power