[Haskell] rekursive array problem