An introduction to algorithms in Perl 6