MSD sort and quick 3-way string sort