add solutions for constructing tree from preorder/postorder and inorder traversal