PCA in java; first steps towards PCA in R