Insertion sort a list