[Haskell-beginners] Updates in the ST monad, seems slow