Insert elements into singly linked list