added a deque library for logger