Adaptive DBSCAN implementation