Changed List, Queue, and Stack classes into class templates (with variable element payload pointer types)