Realized that I was overwriting the pivot in Quick Sort.