A divide-and-merge methodology for clustering