adding matrix powers test script