add queue for bfs