Update smoothing method

Now returns a window of __almost__ the same length, still need to append
a value to the end.