serialization of singly linked list