Calculating eigen values by use of power method