DBSCAN implementation with FA criteria