Implemention of a Double-ended Queue (Deque) using a circular array with a fixed capacity. The Adapter pattern is used to implement a Stack and Queue using the Deque implementation.