Added erase method for deque