fixed quicksort for the case of an array 0,0