genetic algorithm implementation added