CourseQueue implemented as template

All prior instances of CourseQueue are now implemented in templated form.