QuickSort implementation with Java