You have to write your own methods for permutations and combinations. I did not understand your 2nd and 3rd sentences though.