code: public static void swap(int[] intArray1, int[] intArray2) {		
  	    int minLength = Math.min(intArray1.length, intArray2.length);
  	    
  		for(int i = 0; i < minLength; i++) {
  			XORSwap.swap(intArray1, intArray2, i);
  		}
  	}
docs: Helper method that swaps all the elements of the arrays. This method runs in
  O(<code>Math.min(array1.length, array2.length</code>) time.
  
  @param intArray1 one array that will have its values swapped.
  @param intArray2 other array that will have its values swapped.