Function lineIntersectsLine