Parallelize building GMM　histograms