Added code for clustering documents based on topic.