feat: Correctly implemented Genetic Algorithm for Optimization in CPP