Templated Linked Queue and Stack inheriting from LinkedStack