Implemented and tested up to encode
Merge branch 'master' of https://github.com/mikeecb/ocaml-problems