computes the eigenvalues and eigenvectors