rewritten print_tree_bf, now with queue. Maybe better to use do while loop