Intersection of three arrays