add intersect method to intervalset