rewrite gps smoothing as composed resample/box stream primitives