removing an element from a singly linked list. Used for a german wikiversity course on datastructures and algorithms