Tree filling BFS style.