integrated linked list into sentence parser and clear() and delete() are
successfully freeing memory