An ocaml implementation for bson