LDA implementation using different inference algorithms