sorts entries above the pth

quicksort(i,p-1);