Code to print the tree in level order