Quickly ported Kmeans clustering topology