Function definition and final quicksort excercice