Added a circular queue and shifting circular queue