Function kendallCorDestructive

Kendall's Tau-b O(N log N), overwrites input arrays with undefined data but uses only O(log N) stack space for sorting, not O(N) space to duplicate input. R1 and R2 must be either SortedRange structs with the default predicate or arrays.

double kendallCorDestructive(R1, R2) (
  R1 input1,
  R2 input2
);