Initial implementation of k-means clustering of colors for posterization