adding my trial of a genetic algorithm