Create list.c

functions for linked list