added equals methods to Node and Field