Implement queue by circular array and list