Added implementation for r_set_insert()

Targets #166 .