Added shortest distance to line

Line2D.perpendicular updated to put vertex on intersection
Line2D.distanceToLine added
Line2D.segmentDistanceToLine added