Implemented equals(Object) and hashCode() as per the Map interface. Also, added a toString() method for simpler debugging.