added equalDimensions method to Intervals to test whether two intervals
have the same size (regardless of their offset)