Simple Graph coloring algorithm implementation (Welsh-Powell)