power method with algorithm 1