adding compSort macro to quicksort