Added implementation for r_set_contains()

Targets #168