Update slope_dp.cpp