Debugging curve.cpp