Implementing linked lists, using pointers to test