added dijkstras 3-way quicksort