Parallelize findPartitionDensity