Change single linked list to doubly linked list