deque: modify deque to be usable without calls to malloc/free (static)