code: public int sharedSegments(Triangle t2) {
  		int counter = 0;
  
  		if(a.equals(t2.a)) {
  			counter++;
  		}
  		if(a.equals(t2.b)) {
  			counter++;
  		}
  		if(a.equals(t2.c)) {
  			counter++;
  		}
  		if(b.equals(t2.a)) {
  			counter++;
  		}
  		if(b.equals(t2.b)) {
  			counter++;
  		}
  		if(b.equals(t2.c)) {
  			counter++;
  		}
  		if(c.equals(t2.a)) {
  			counter++;
  		}
  		if(c.equals(t2.b)) {
  			counter++;
  		}
  		if(c.equals(t2.c)) {
  			counter++;
  		}
  
  		return counter;
  	}
docs: checks if the 2 triangles shares a segment
  @author Doron Ganel & Eyal Roth(2009)
  @param t2 - a second triangle
  @return boolean