Statistical mechanics and phase transitions in clustering | Synapse