A basic version of the collapsed Gibbs sampler for LDA which also compiles.
adding code to compute top k words in each topic