Hierarchical clustering implemented >_<