Blocked Gibbs sampler for hierarchical Dirichlet processes | Synapse