some exploration of using c++11 lambda functions stored into
functional variables for recursive calls.