Add code for consturcting tree from inorder and preorder