Modified methods in the ArrayQueue
Modified the main function