Update BFS function description