[runge-kuttha] (haskell) modify for less memory usage