code: public static void swap(double[] doubleArray1, double[] doubleArray2, int index) {
          TrivialSwap.swap(doubleArray1, index, doubleArray2, index);
      }
docs: Swap the elements of two double arrays at the same position
  
  @param doubleArray1 one of the arrays that will have one of its values swapped.
  @param doubleArray2 the other array that will have one of its values swapped.
  @param index the index of the arrays that will have their values swapped.