md_lookup_line: New function.
md_lookup_line: New function.

The function performs a binary search over array of MD_LINE structs to
find a line the given offset lives on.

Replaced few linear scans for such lines with a call to this function.

mity/md4c,mity/md4c,mity/md4c