Added test code for K-means clustering color extraction