updated DBSCAN algorithm