LDA initialization

Implemented LDA initialization code