Working on heap and the ocaml tutorial to convert to Haskell.
http://caml.inria.fr/pub/docs/manual-ocaml/objectexamples.html#c%3Aobjectexamples