Add BFS search for shortest path length