Reset to stable commit
Completely rewrote the code. Schedules are now stored in arrays, instead of linked lists.
Removed redundant code.
Removed redundancies