add smoothing.cpp