Classic algorithms written in Coffeescript