Improved Interval class with auto dispose.
Added IntervalSequence class.