Move unidirectional BFS into search namespace