Implement Categorical.searchsorted(v, side, sorter) #8420

jrebeck, I've tidied up my messy commits into this clean PR, incorporating your comments over the last few days.