print tree from top to bottom