a small project which implements the K-means algorithm