add build tree from preorder and inorder