I have a sorted two-dimensional array like this:

```
testv = sortrows(["zebra" "N" 20; "jimi" "V" 100; "johnny" "V" 200; "pete" "P" 33; "jimi" "N" 20])

```

Now I basically want to check if something like

```
"jimi" "N" x

```

is in the array. If it is, I will increment x, otherwise I'll add `"jimi" "N" 1` to the array.

The lazy way to do this would just be to iterate through the array checking all the entries, or to write my own binary search, but I am keeping the array sorted to try to minimise that cost. If there's a way I can get `searchsorted` to do this for me, that would be ideal.

It'd also be fine if I could just use `searchsorted` on `"jimi"` - my understanding is that (if that worked) it would return a range where `"jimi"` appears in the sorted array? That would be fine, the second column of the array comes from a small enough domain that I don't mind looping through that the slow way.