Initial code for Hierarchical Clustering.