KR/01: add C and OCaml solutions
MAINT: minor cleanup