Add new Rect2XYs logic and benchmarks