LDA implementing