Adding program to reverse a linked list