if (lowIndex < highIndex) {
          int temp = data[highIndex];
          data[highIndex] = data[lowIndex];
          data[lowIndex] = temp;
          highIndex--;