Changed kmeans checking in init_cases