classinitialize for quicksort