add doubly link list code