K-means implementation for the Data Mining Class