add lda algorithm