bfs tested; merging sssp