the Hoare version of quickSort implemented with java