mineswpr: regrouped methods and made set operations global