Adding BFS/BFS path retrival functions.