implemented all intersect and union methods and tested them