An example of a simple Genetic Algorithm