sort a linked list using insertion sort.