first version of construct a tree by post order and in order.