median of 3 and insertion sort for len < 8