refactor the NewTreeTopology to use nTasks instead maxID
Merge pull request #75 from xiaoyunwu/master

refactor the NewTreeTopology to use nTasks instead maxID