performance optimization of finding eigenvector