Merge adgecent entries given a sorted hits file.