Cartesian product of distance intervals implemented