Updated the exceptions in the Kmeans algorithms