update genetic algorithm