function [ l ] = mybinsrch( A, info )
%MYBINSRCH returns the index of A containg info, 0 if not present
%  Uses binary search
%  Minas Spetsakis March 23 2016

top = 1;
bot = length(A);

while top<=bot
    mid = round( (top+bot)/2);
    if A(mid)==info
        l = mid;
        return;
    elseif A(mid)>info
        bot = mid-1;
        continue;
    else
        top = mid+1;
        continue;
    end;
end;
l=0;

end

