Merge pull request #12 from mborne/master

straight skeleton, makeValidOrientation (2D)
Improve distance (issue : Invalid Line make distance function to crash). Allows lineString.numSegment() on single point LineString (returns 0) and replace exception in distance by infinite value