modified quicksort algorithm blog