linkedlist:added doubly linked list replace and index functions