Genetic algorithm application example