modified KMeans algorithm with Lens