Linked list implementation finished with sortedInsert