The d3.bisect function from d3