deterministic distance-2 coloring