modified dpmm gibbs sampling  for general dimension. Created constrained version of dpmm gibbs sampling.