Added k-means algorithm basic implementation.