ChatGPT - Color Quantization C++ Code