Adding genetic algorithm