Initial ineffective, non-in-place QuickSort in Java