어디가 틀렸는지 모르겠습니다.

The partition5 subroutine selects the median of a group of at most five elements; an easy way to implement this is insertion sort.[1] Note that pivot callsselect; this is an instance of mutual recursion.