print the tree in level order