construct binary tree in order and postorder traversal