Functions for cluster analysis, originally from Peter Rousseeuw, Anja Struyf and Mia Hubert.