Improve double linked list by fixing some confusing logic in the remove methode.