Correct the implementation of PCA. Use svd function to extract features since it is always out of memory when using covariance method.