Added deque insert and erase functions