An Implementation of  K-Means clustering