Hierarchical clustering for small collections of strings