Mergeable queues