insert element into singly linked lists