Exact and approximation algorithms for clustering | Synapse