Added Lab6 BFS for comparison