change Timsort