Construct Binary Tree from Preorder and Inorder Traversal: simplify logic