Groovy Genetic Algorithm implementation