Genetic Algorithm in dart