added BigNumber support to permutations (with tests)