very minor clean up
(1) TaskQueue now accepts shared_ptr<T>. (2) Cleaned up GradTasks