Fixed bug in the bianary tree.