Code to sample and test a Dirichlet Gaussian Mixture.