code: function swap(values, boxes, indices, i, j) {
      const temp = values[i];
      values[i] = values[j];
      values[j] = temp;
  
      const k = 4 * i;
      const m = 4 * j;
  
      const a = boxes[k];
      const b = boxes[k + 1];
      const c = boxes[k + 2];
      const d = boxes[k + 3];
      boxes[k] = boxes[m];
      boxes[k + 1] = boxes[m + 1];
      boxes[k + 2] = boxes[m + 2];
      boxes[k + 3] = boxes[m + 3];
      boxes[m] = a;
      boxes[m + 1] = b;
      boxes[m + 2] = c;
      boxes[m + 3] = d;
  
      const e = indices[i];
      indices[i] = indices[j];
      indices[j] = e;
  }
docs: swap two values and two corresponding boxes