Compile error of QuickSort.java is fixed. But there is a logical error