Using genetic algorithm