relate(L,L) added asserts to boundary_checker
relate() boundary_checker moved to separate file