Some improvements to DBSCAN and added a gen_clustered_data function for testing algorithms