Added deque2 which should improve performance of deque