DS: Implementation of deque