A swapping_queue implement