The timetables now optimize between revisions

There are still bugs in courses having their own labs and tutorials
overlapping. However it's working!