added list.c

list.c implements list.h. Compiles but hasn't been tested