Refine the Loop Body
/* Sort A[0..m] into non-decreasing order. */
public void sort(int[] A, int m)
for ( int k = 0; k < m; k++ )
/* Given that A[0..k-1] is finished,
int minLoc; // subscript of
/* Set minLoc so A[minLoc] is
/* Exchange A[k] and A[minLoc] */