added function to execute K-means in the file generated genarateMeans.R