Adding genetic algorithm code