Implementations of common algorithms in Perl 5