add a deque module with a circular buffer