compacting timeslot on classroom availability and teacher availability