Automatically generates class routines given available halls, labs and lecturers.