Added special case for different size of curves
Set Theory on the example of working days calendars. Simplified by using
dates in a funky numeration as plain integers