Return the distances between the centroids of each pair of clusters, under the clustering of a given number of trees