A deque implementation written in c