C++ implementation of basic genetic algorithm.