an implement of LDA model for c++