added kmeans c code