DOC/TST custom algorithm in neighbors and dbscan