Implemented perplexity output from https://github.com/JerryZhong/LDA