list.c iterative functions to add to ordered and unordered lists