make some simple changes in quick sort