adding function to get eigen values and eigen vectors in one go