Updated pca.cpp with invariants
Merge pull request #1 from sanketc1987/master

Updated pca.cpp with invariants