Edited the add and remove operations in ArrayQueue.