1. A method for creating, from a digitized color image with N distinct colors using a data processing system, a tree structured partitioning of all pixels in the digitized color image into M disjoint clusters, wherein M is less than or equal to N, each color in the N distinct colors is digitally represented by a plurality of P-bit bytes in a color palette, and the P-bits in each P-bit byte are ordered from most significant to least significant, the method comprising: (a) providing a root node comprising all of the N distinct colors; (b) providing a first level of sibling nodes linked to the root node, wherein each color in the N distinct colors is allocated by the data processing system to an associated node in the first level of sibling nodes based on a value of a first bit in each P-bit byte in the plurality of P-bit bytes; (c) for each node in a kth level of nodes comprising more than one color, providing a plurality of sibling nodes at a (k+1)th level, wherein each color in that node is allocated by the data processing system to an associated sibling node in the plurality of sibling nodes at the (k+1)th level based on a value of a (k+1)th bit in each P-bit byte in the plurality of P-bit bytes for that color, such that for each color in the N distinct colors there is a distinct leaf node comprising that color alone; and (d) selecting and merging leaf nodes until there are only M leaf nodes left.