implement delete on double linked list