balls in a tree