implemented 8-bit Uniform Color Quantization