Trie data structure written in OCaml