set() in pols2edges speedup