Correcting the missing N-- to be put for Deque in remove method