K-sets and k-swaps algorithms for clustering sets. (July 2023)