A toy implementation of ARIMA (bugs exist)