Functions for smoothing a path of 2D coordinates using the method described by Michel Waringo and Dominik Henrich