Builds a tree given the post-order and in-order traversals.