dbscan and single link functionality were implemented. cleanup was done.