Code style unification
Modified Deluxe BFS to optimize marked()