Modyfied BidirectionalLinkedList.