Genetic algorithm for advanced clustering in phased array design