Linear algorithm to construct binary tree from PreOrder/InOrder or InOrder/PostOrder.