Moving Average of Last N numbers in a Stream