algo4: tree: Construct binary tree from preorder and inorder traversal