Finds the eigenvalues and eigenvectors for a given matrix