store previously calculated matrix powers to minimize calc redundancy