added inrange function to the breakpoints library