Algorithm AS136: A k-means clustering algorithm.