modified Binary Tree Inorder Traversal