ENH: implement `digitize` with `PyArray_SearchSorted`