Create Preorder and inorder sequences of binary trees