void swap( PINT i1, PINT i2 ) {
  *i1 = *i1 + *i2;
  *i2 = *i1 - *i2;
  *i1 = *i1 - *i2;
}

void bubblesort( PINT arr, int iN ) {
  for ( int i = iN - 1; i > 0; i-- ) {
    for ( int j = 0; j < i; j++ ) {
      if ( arr[j] > arr[i] ) { 				 
        swap( &arr[j], &arr[i] );
      }
    }
  }
}