Modify k-means for OpenMP parallelization