localhist: fix region merging
localhist: speed up merge O(n**2) -> O(n log n). + ext dep: blist