A hierarchical clustering method based on genetic algorithms