implemented normalize function for power method for eigenvalues