Fixed bug when deciding how many crossover children there should be.
Added a trivial working example for GA.