Renamed IntervalSet to IntervalTrie

Also renamed supporting classes, and renamed IntervalTrie to Tree. Added
some annotations to make scalastyle pass.