A cutting plane algorithm for a clustering problem