add code and example program (no doc yet) for task merging