removed copies of the same result by implementing equals() in ResultNode class