add chordVector() and chordVectorDot() to Segment2DUtils
remove generic parameter of DifferentiableFunction