Added nPartitions input to test partitioning for pca