Pastry implementation in Ocaml