K-Means clustering algorithm on CPU and GPU