fix a bug in solving the dominant eigenvalues of symmetric matrix