Implement parallel_for_workitem()

Add a hierarchical.cpp example to test it.