modify binary tree inorder traversal.