Last version of original tasksplitting.m that is functional
DEMO: tasksplitting.m will be broken after merge