Adding routines to do union/intersection for ranges. Adding routine to determine TICKS/RANGE/TICKV.