Working binary search tree.