relate(L,L) - restored asserts in boundary_checker, added proper calculation of seg_ids for the first and last point of a range