Instant-runoff voting implementation in OCaml