Added 3-way quicksort