Fleshed out LineSeg.cpp functionality