Add eigenvalues calculation to matrix class.