C++ implementation of some genetic algorithms