initial code from http://www.csc.kth.se/~chengz/TopicModelCode.html
instructions for building on Ubuntu