implement summing of singly linked list problem