ex4: linked list insert and delete.