removed clone function; interseting first two arrays; if result is non empty then only proceeding to intersect remaining arrays