This is a string 3-way quicksort implementation