calculating bounding boxes with several algorithms in OCaml, including the approximation of ritter