Non Sorting Genetic Algorithm 2 in Cpp