First commit: performs PCA on data