Add equals method

Because HashMaps use that, if the hashcode is the same (what we want), hashCode only puts objects in the same bucket, equals is used to compare them finally