loop for power iterations
merging