Serialize and Deserialzie the link lists