add lda inference and learning