An empirical study of the performance of heuristic methods for clustering