matrix powers