add quick sort method