Algorithm visualization using Haskell and SDL