Removing generic linked list