Graphical demonstration of k-means algorithm