added comments to quicksort