binary tree: fixed a subtle bug in inorder traversal: now it will short-circuit if foo returns false on left child as well