Updates C++ file with newest algorithm