Genetic algorithm fixed.

GA is fully implemented. Runs slow and results aren't great. Further
finetuning coming up.