Red-black tree implementation in C with OCaml