I need to know how this algorithm works. I have read many blogs about the time complexity of the power method. They said: it can be assumed to be O(1) but I implemented the two