adding c++ wrapper to quicksort