Fixed BFS traversal to cover all nodes from given source