Added initial implementation of powerIteration.