Bug fix of 2D sequential K-means algorithm.