refactor bfs, fl as the father of 1st tree