Circular queue for all data types