Add PeriodSet (partly implemented)
Completed PeriodSet. Speed of operations could be improved.