Started implementing hierarchical clustering.