Added code to project onto lower dimensions using PCA