[Haskell-beginners] Stymied by mutable arrays in the ST monad