private void selectionSort(int[] list) {
    
    int min;
    
    for(int i = 0; i < list.length-1; ++i) {  
      min = i;   
      for(int j = i+1; j < list.length; ++j) {
        //Check for new minimum
        if(list[j] < list[min]) {
          min = j;
        }
      }
      
      //If a number smaller than j was found, swap them.
      if(min != i) {
        super.swap(list, i, min);
      } 
    } 
  }