Simple implementation of a greedy graph coloring algorithm