Minor speedups to TimSorter.
Refactor Benchmark to test more array shapes.