array implementation of circular queue