Define equality for two maps.