Implementation of dictionary binary tree, balanced by the weighted internal path length of each node.