Saving Aman's implementation of deleteList in List.c