PCAn function

Principal Component Analysis on n modes