SimpleMovingAverage class