resize-array-queue implemented
shrink and enlarge queue correctly