Parallel implementation of K-means clustering with OpenMP and MPI