Updated PowerMethod part a

Power method works, but while loop doesn't check iterations