added multiplication by quantity for intervals and sets, and also added quantity*matrix