topic model with gibbs sampling based on Steyvers and Griffiths (2007)