Please implement the Timsort algorithm on Lean 4 and explain your code