Smith-Waterman algorithm in CoffeeScript