Various algorithms written in Perl, Python, and Ruby