Implemented agglomerative clustering algorithm, now working in TextMining main.