A Binary Search Tree optimizer.