linked list save struct in binary file