function a = sorted_find(items, item)
    hi = size(items, 2)
    low = 1
       
    while low <= hi
        mid = floor((hi - low)/2) + low
        
        if items(mid) < item
            low = mid + 1
        elseif items(mid) > item
            hi = mid - 1
        else
            a = mid
            return
        end
    end
    
    a = 0
end