simple gaussian smoothing routine