A function to take the eigendecomposition of K Note: This is faster than taking SVD of X when p >> n
Useful links