Mutable arrays in Haskell 98