add simple genetic algorithm copied from Googled results