OnlineLDA refactoring