Fixed backtracking algorithm - Merci, OCaml!