C language version of the map coloring problem