Added smoothing.py (unfortunately without reference, I didn't write it, just copy-pasted it from somewhere).