Added utility class, and changed the way intersection of u,v,w are validated.