kNN PCA working