add solution for balanced_binary_tree