Corrected the DBSCAN algorithm.