It realized a Clustering Algorithm: K-means
It contains two situations,
First: know that how many classes need to be clustered;
Second: don't know how many classes there;
-----------------
There are also attached a little package of testing files for your ease.