Updated hierarchical clustering with faster library