Add MovingAverage and tests