set centroids to radomly chosen examples from the dataset X