Update KaryProblem.cpp