Changed RX_Queue to a templated class to allow multiple sizes of queue.
Templated Queue and Deque to allow different size structures.