Implemented QuickSort in Java