How to store the data dynamically in linked list in C