Fixed bug in power iteration method