Added implementation for r_set_contains()