Added the implementation of the functions in List.h at List.c