data smoothing algorithm simple1 implemented with trivial testing