Working quickSort implementation with comparison count