Added cancellation option to Quicksort