Fixed bug in binary pointer tree.