PCA function

Principal component analysis