Added basic operations for intervals