// - go to commit 578bfa27 and the scratchpad/ folder in it, which has printfs sprinkled throughout
intpivot=low+floor((high-low)/2);
doublepivot_value=xs[pivot];
swp(pivot,high,xs);
intgt=low;/* This pointer will iterate until finding an element which is greater than the pivot. Then it will move elements that are smaller before it--more specifically, it will move elements to its position and then increment. As a result all elements between gt and i will be greater than the pivot. */