Update smoothing.cpp