Changed DoubleLinkedList implementation to use sentinels.