Adds average-damp (returning a function) example.