Segment intersection fix

There is a bug in segment intersection when one of the segments is a single point (see new tests)