added history support of used patterns to the Perl implementation
optimized the Perl implementation with perlcritic
small fixes in the Python implementation