add BFS shortest path