Implements the average-linkage (unweighted pair-group method using arithmetic averages, UPGMA) clustering strategy. The distance between two clusters is defined as the arithmetic mean of all pairwise distances between elements of the two clusters. This strategy represents a compromise between single-linkage and complete-linkage.