This is an implementation of single-linkage Hierarchical Agglomerative Clustering using "bottom-up" approach with Euclidean distance as the distance metric in O(cn^2d^2) time, instead of naive algorithm's O(n^3)