added clear to linkedlist_destruct