ArrayQueue implemented