print tree from top to bottom each level in line