Implementation of different types of FIFO