completed sorting algorithms ending with quick sort