This C++ code perform Principal Component Analysis (PCA) on a 3D point cloud and project pointcloud to the space spanned by the eigenvectors