Java implementation of PCA