Modified Preferences.java, added way to specify how far we should look inside numCoursesPerSem array