Added ufds set size limiter (currently may cause infinite loop due to unlucky rng, so it is disabled)