Added a generic package to represent intervals in 1, 2, and 3 dimensions.