some speedup with timsort
histogram search implemented