Modified QuickSort to fix NullPointers

QuickSort can sort a specified portion of an array, not the whole thing
I just realized