Supersimplified the bidirectional BFS finder.