- added TASK_PERIOD comparator to instanceOfPeriodicTask
- instanceOfPeriodicTask no longer needs to implement Comparable, so I removed it
- changed Main.java so that it uses TASK_PERIOD comparator