Clustering algorithm initial commit