added genetic algorithm, added example