compute_eigen_decomposition function

Compute the eigendecomposition of a matrix