add intersction function  to perform set intersection operation