Function pointer example: using qsort