first time to add template quicksort