Linked List delete with head and tail