Assigning students to academic majors