fixed a logic error in the sorted_tree_find_child() routine