build tree from inorder and postorder traversal