added a function to genterate the set of all permuation of a slices as order matters and all possible orders must be checked