finished basic structure of sampler for topics inference