Fixed obscure bugs with timsort
Finished tinkering with timsort