Convert Map__compare into Map__equals