functions for operation on the range-- union, difference, subset, isempty, scalar, square,sum