Kmeans algorithm - using c# to achieve