Update kmeans.m

I finished the implementation of the kMeans algorithm.