added pcaReduceN to PCA