add L0Smoothing function