Update genetic.cpp