Model an algorithm as a list of functions.