C++ implementation  for online variational inference for hierarchical dirichlet process