making lists doubly linked