Added code for LDA Topic based query selection, part 1.