Signed permutations

Signed permutations implemented using a modified version of
permutations.py