MovingAverage small ammend
MovingAverage speedup - use deque as a buffer
MovingAverage.next() returns the updated average only