function B = swap (A)
 [temp, id] = max(A);
 A(1) = A(1)+A(id);
 A(id)= A(1) - A(id);
 A(1) = A(1) - A(id);
 B = A;
