smoothing algorithm used in OpenSHMEM parallel library implementation