Adding LDA simulations; moving cosine similarity code out into ML dependency