fifo queue and lifo queue