Implementation of color quantization using octrees.