Integrated DBSCAN clustering code