Read chapter 21, The Functions Program from Simply Scheme.
Functions
The section from Introduction to Applied Bioinformatics on the Smith-Waterman algorithm.