added reverse_merge to hash class