Tweaks quick sort. Adds Big-O notes.