serial coloring using insertion sort tested with small inputs