Adding rselect algo