code: private static void insertionSort(double[] data, int start, int end) {
      for(int i = start + 1; i < end; i++) {
        for(int j = i; j > start && data[j - 1] > data[j]; j--) {
          swap(data, j, j - 1);
        }
      }
    }
docs: Sort a small array using repetitive insertion sort.
  
  @param data Data to sort
  @param start Interval start
  @param end Interval end