Timsort, Gallop search, overloads for sorting parts of arrays