glm import + some components for leastsquares bezier fitting of points

source graphic gems 1