Remove unused classes.
Add comparator for interval.
Add interval relation based on Allen's interval algebra.