Update midpointLine.cpp