Updated Queue to implement templates, and made it the base class of Packet, as Packet acts as the container for a list of integers representing the routers that the packet must travel through.