build binary tree with preorder and inorder