Before:

// Function to swap the values of two variables
int swap( int & first, int & second )
{
   int temp;
   temp = first;
   first = second;
   second = temp;
   return temp;
}