Linked list and some codes to test how they work in C