split workunit based on the maximum of (maxsize splits) and (specified totalwork)
Merge pull request #73 from wtangiit/master

update for task splitting