Genetic Algorithm In C++