VC++ Gaussian smoothing