git import of patrick perry permutations lib from darcs