implemented QInterval->contains and QIntervalUnion->contains