A time series analysis thingy... in Haskell...