similar to 'construct binary tree from inorder and postorder travsersal'