bool equal(const IntSet& is1, const IntSet& is2)
{
    if(	is1.size() == is2.size() && // check if sets are same length
        is1.isSubsetOf(is2) &&	    // check if sets are subsets of each other
	is2.isSubsetOf(is1) )
	return true;                // if both conditions hold, return true
    else
        return false;		    // else return false
}
bool operator==(const IntSet& is1, const IntSet& is2)

// this function checks to see if is1 == is2 by confirming if:
// *   each object's elements are subsets of one another
// *   each object's data[] array contains the same # elements
{
   if ( is1.size() == is2.size() &&      
        is1.isSubsetOf(is2) &&     
        is2.isSubsetOf(is1) )
      return true;                    
   else
      return false;              
}