fn shrink<T>(deque: &mut VecDeque<T>)
Shrinks deque if it uses less than a quarter of its capacity. It keeps twice the length, which is what a push would grow it to.
deque