A tree datastructure for semesters