Factor out reverse_index() into boxtree.tools.
Add merging of sep_close_{smaller,bigger} into neighbor_sources / list 1.