Implement linkedlist in c