Permutations, patterns and statistics; a haskell package