fast streaming version of moving average