Fixed k-means random initialization bug that caused some clusters to be
empty after the first iteration.