Add weighted binary search tree