mova function

Function that calculates the moving average of a time series