Added non-working version of the clustering algorithm.