Adding options and logic for squaring distances and square rooting heights for the Euclidean-based methods Ward, centroid, median; as expected by current version (1.1.13) of fastcluster. Latest version of R fixes this squaring issue internally (new ‘ward.D’ and ‘ward.D2’ methods added to hclust); fastcluster may follow suit in new versions?