updated linkedlist.c