add in2d and intersect2d to do set operator in 2D array