This is an implementation of k-means algorithm using the radical pilot api.