given events(time intervals), compute their union, it could be a set of intervals