Added iterator functions to add/remove elements to deque