generic insert in LinkedList