unfinish the end condition
implement quickSort