add moving average (calcmovingaverage.m)