calculate length of quadratic bezier curve