Performance optimization of finding eigenvectors