add power method to solve the maximum eigenvalue