added quickSort2 for part2