Achieve K-Clustering with matlab