Mechanical synthesis of sorting algorithms for binary trees by logic and combinatorial techniques. (January 2019)