Statistical mechanics and phase transitions in clustering.