Implementing C LinkedList