Linked list routines, some test code in main