Delete a node from a linked list