Added checking for overlapping lectures for courses/profs