Changed list.h list functions to accept pointers to list objects