Basic implementation of a singly linked list in C language