Implementation of sets of integers with double linked lists