Genetic algorithm gem