Added genetic algorithm code