Algebraic permutations, cyclical permutations and everything related implemented in Python & Haskell.