a convenient wrapper for c++14 to create/pass and hold the lambda on the heap