Eigen Decomposition fixed

Using Gram Matrix trick for computation of low rank matrix.