add intersect function

assert args.length == 2 would be good