Create midpointLine.cpp