Working QuickSort using class