The quicksort is working now
Change the divide to use mid value

for quicksort