Initial bfs path finder implemented for maxflow.