Simple insertion sort.