Completed singly linked list demo