First version of genetic algorithm works.