update balanced binary tree