working on balanced_tree