Quicksort special case handling for list length of 2 (do not swap pivot to end of list)