TASK 4: accelerated smoothing using Cython