Create, fit and take posterior samples from a Dirichlet process.