Some more work on IndexKMeans.