add_balanced_tree function

Add a balanced tree to the graph