Returns the arc length of the curve.
By default this function throws the exception "not Implemented". Should be implemented in derived classes.