Continued implementation of doLinesIntersect(); fixed copy-and-paste bugs in tests