a bfs search demo