Node: implemented equals() and hashCode()

to better compare Nodes or to perform set operations on collections