Simpler hashCode for a node