Corrected Fleury and Rhid. Corrected bfs