Removed the redundant Class PeriodGroup, improved algorithm

Checked and removed lessons that clash with compulsory lessons