this is a java version of gibbs lda