r818: dropped bfs

BFS takes too much memory