Made changes to Quick Sort