Issue 13 : Invalid Line make distance function to crash

LineString::numSegment() now returns 0 for single point LineString, distance/distance3D with single point LineString returns infinity.