v2.0 update lda: optimization