shows how to implement sorted list with linked list