Add equals for intervals