Genetic algorithm framework