code: private static void exch(long[] values, int i, int j) {
          long k = values[i];
          values[i] = values[j];
          values[j] = k;
      }
docs: Exchange the elements at index i with that at index j.
  
  @param values an array of values
  @param i an index
  @param j another index