Quicksort written in java based on the C++ version I wrote. Not well tested