Agglomerative hierarchical clustering for characters.