Example of Genetic Algorithm