Adding helpers for creating centroids from a partial index and original data matrix as well as a helper to assign the rest of the data points to those centroids