Code changes for blog post "Playing with lambdas..."

The code now accepts standard function pointers as well as C++11-style
lambdas.  Hack & be merry.