update function offer & poll in class circleQueue