created a Interval_Ends class that stores the endpoints of an interval.  There are utility functions for it.
deleted depreciated function