minor changes in quick sort