smoothout function

Contour smoothing