The K-Means Algorithm