building tree from preorder and inorder