split main.c in double linked lists