Text this: CDL: A fast and flexible library for the study of permutation sets with structural restrictions