Update BFS.cs

algorithm error fixed