Implementing quickSort