use deque for swapping tables allocator