Implement InsertionSort.