'Extends the list at the given index with the nodes.'

def extend(self, nodes, index):

    sentinel = self.sentinel
    for node in nodes:
        lastButOne = sentinel.prev[index]
        node.next[index] = sentinel
        node.prev[index] = lastButOne
        sentinel.prev[index] = node
        lastButOne.next[index] = node
