fast array intersect function