Keeping every distinct flat-area color made each lookup scan the whole
list, so an image with many slowly varying flat colors cost pixels times
colors. Each class's colors now sit in cells 2 * PURE wide on each
channel, and a lookup checks the pixel's cell and the 15 neighbors on the
sides it lies nearer. A test compares the lookup with a scan of every
stored color.