template void swap(Type array[], int i, int j) { Type tmp = array[i]; array[i] = array[j]; array[j] = tmp; }