Schedulefix

Introduce 2nd rbtree to hold tasks by name.Trees share tasks.
But one thing should be added here, if the task fails to be added in the old tree below then it should be removed from the name tree.