add procedure union-set for sorted set