More line intersection work, added basic unit tests