void timSort(int *arr, int l, int r)
Sort array.
void timSort_with_idx(int *arr, int *arr_idx, int l, int r)
Sort array and an associated index list.
void timSort_with_idx2(int *arr, int *arr_idx1, int *arr_idx2, int l, int r)
Sort array and two associated index lists.