Added compute centroid function
There is a bug in the T value assignment in the inner loop (the mean computed of all the data points that are assigned to the cluster). Need to fix that.